Issue with Player Interacting with Colliders in 2D Game

Hello,

I am creating a 2D game in Unity, but I have a problem that I can’t solve. In my game, I have the main character and several objects, but when I try to walk along the edges of those objects, the character does not interact properly with the colliders.

2024-07-2321-43-33-ezgif.com-video-to-gif-converter

This problem only occurs when there are two or more colliders lined up as seen in the videos, regardless of whether there is distance between those colliders or not.

I have tried several things, but nothing seems to work. Can anyone help me?