I have an M1 MacBook Air with macOS 26.5 installed. I post it so other people might know about that.
In other games, there is a possibility to add .app in the controller settings and activate "Increase controller compatibility" mode, which emulates the older 360 model and oftentimes helps (with my games, it works in like 7 out of 10 times).
In the case of Shovel Knight: Treasure Trove, that trick doesn't work because the macOS settings don't allow adding that app. I can choose it, but nothing happens after.