Try to search an event of USB turn off or sort of it at least in your OS general logger engine, for example man journalctl.
What returns the Internet search if to paste that line(s) into a search engine input?
If to cut your personal info from that lines before to paste them (like date/time, PC name, PID (process ID), etc.) than you increase a chances to find a described cases closer to yours. May be somewhere the solution was posted several times and only awaits for a matched search criteria and a discussion reader.