Why don't you talk to your professor or write him/her a note and explain why you couldn't do the assignment and ask if there is an alternative assignment you could complete on a different subject? If the class is going to discuss the subject, you may want to skip the class as well.
Sorry this has upset you so. You are right to walk away from it. You are also very understanding of your therapist and her needs. Commendable!