I'm sorry you are so anxious. I know what it's like to wait on edge to find out who's getting laid off. It might help you to get some Ativan or klonopin that you can take during the day to make work more bearable.
I would suggest avoiding medical leave it at all possible. In my experience if someone is on medical leave at the time of layoffs they usually come back to find they don't have a job because 1) the company doesn't want to keep employees who are getting paid but absent and 2) the employee is considered nonessential because the work is being handled in their absence. I hope that doesn't stress you out more but I know you don't want to lose your job. Hang in there