I don’t want to rub salt in the wound but reread the above responses.
Go to the disability office and the health center. Be sure your anxiety is being well managed.
I think though this is a good life lesson. Doing the bare minimum and procrastinating is never a good idea. Stay on top of your mental health too.
My D has many classes where attendance wasn’t mandatory at all but professors did keep track and would often bump grades for those students who showed up for everything, did all the work, went to office hours and review sessions, and put in 110%.