Cont.
I ended up repairing all Microsoft Vision C++ applications from 2015-22 and the apps below this on my application list. Attach a picture below and this seems to have sorted my issue with gamebar running and mouse running on to my second display when it should be locked in an fps game. Hope this works for you.
I repaired each of these in turn and after each repair my pc needed to restart. After all were done I no longer had the issue and tested it with gamebar running.