Hello StylishMario: I don't have a solution for you, but I can tell you you that others are reporting similar symptoms - audio device intermittently and unpredictably unavailable and showing as inactive. Have you looked at your OBS Log file, and is there an error message where OBS is trying to initialize the device?
In my case I believe it might be associated with a Windows update (KB5034204).
Also, if you are not already doing it, running OBS as Administrator might help.
Good luck...