I solved the sticking problem by adding a physical material with the following settings to the player's collider. This may not be suitable for all games, depending on your goals, but it might be helpful for you.
Well, I figured out how to break the wall, and I really liked the game. The only problem is that the character sticks to the walls, which is especially annoying in the factory when you need to climb to a height