How do I solve the camera collision problem?

Hrm, I’ve done something similar before and it worked, something may have changed. Oh well, you could also have the spring/camera attached to the capsule instead but that means no leaning with the character mesh at all.

Though if you wanted to go the trace route, its going to be custom for each person since your character’s animation BP is different. If your lean forward is handled there, you’d trace and branch off depending on if it hits or not. If it doesn’t hit anything they keep leaning, otherwise the lean stops.