My camera goes too far

Hi, I have a problem that I don’t think happens to a lot of people, which is my camera goes too far forward so I can see through walls. I have just fixed a bug where the camera goes through the wall, but in the case of the picture I can still see through the walls. How can I fix it? Thanks