The game is expecting Xinput, but the Switch controller is Direct Input. Anything that can convert between the two will fix it, such as simply setting up the game to run through Steam.