According to the controls section of the menu, to lean you need to raise your hand with L2 then press/hold L1 or R1 to lean in the desired direction.
Unfortunately this does not work as intended 100% of the time. Sometimes the action just doesn’t happen, while other times the Barrel Roll is used instead.
I’ve tried this in both 1st and 3rd person views and the big is replicated in both.
I’ve also tried removing equipment and gear, raising hands with an equipped weapon and raising hands with nothing equipped also results in replication of the bug.