CFrame Placement Bug

I am making a placement system, and to correctly positon the model on walls, ceiling, floor, etc., I am using this.

curModel:SetPrimaryPartCFrame(CFrame.lookAt(raycast.Position, raycast.Position + raycast.Normal))

And I get this bug, that whenever the raycast.Normal is looking in an X direction (1,0,0) or (-1,0,0), the model goes too far into the wall for some reason, and I don’t understand why.

Here’s a video of the bug.

I have no clue why this is happening, so if anyone can help, will be much appreciated

all I can say is what is that background music tho