Taskbar disappearing when WOW is not focused

So far in my testing, I’ve been able to stop this from happening by playing with integrated graphics. I’d very much like to use graphics card and have access to the taskbar thank you very much. Any more information I can provide I’ll be happy to. My computer specs are the AMD 5900hs processor and the RTX 3060 on windows 11. Laptop does have optimus enabled and there is no disabling it on this model. I know this issue is not game-breaking but I’d like it fixed.