Same happens for me, after trying to continue my game (in local coop) when Player 2 joined his controller mapping was reseted to default, at the start his custom controls where the same as Player1, but when entering again his custom controls where locked to default no matter what.
I forgot to mention that I play in Switch 2