I'd think carefully about this, it can color your professor's perception of you. What is your treatment plan with your therapist, because apparently it's not working.

I guess if it was me, or my daughter, I'd suggest saying that you were sick. Which, in a way, you were.

Does your school have online classes? might be something to look at until you can turn the corner.