Since CommonUI might be the problem, please take a look at the discussion here and see if the suggestions there help: [Common UI stealing gamepad buttons from enhanced [Content removed]
This thread also has suggestions to try: [EnhancedInputSystem vs CommonUI: always converts Gamepad face button bottom as Mouse left click [Content removed]
Can you check both out and see if your problem is the same as theirs, and try the suggested workarounds?