How can I make my hitbox smaller

I was making a maze then suddenly I saw a bug in my game that before colliding with the wall. can somebody tell me how can I fix this

Check the Height and Width of your Sprites and walls.

Double check the origin X,Y of each Sprite compared to its center.

thanks I will try it