Wow! I am sorry that happened.
As for your quads…do you do static tightening of your quads and straight leg raises? That might help if not.
as for sleeping I put my leg on a pillow as well and sleep on my side now with that pillow between my legs.
pain is certainly an issue though.
I wish you all the best