Hi, I'm Elise, and I'd be happy to help with your issue.
You can disable fast user switching which should prevent this issue, please see the steps in this article:
https://www.tenforums.com/tutorials/95383-enabl...
Kind Regards,
Elise
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.