The lens tube friction shims must have got out of whack.
There is no simple fix to this, replacing the tube friction shims requires a total teardown of the camera front plate. Not worth the extra trouble. This is not really an issue. The lens tube isn't really designed to lock itself in place when collapsed. Now you will take the habit of not tilting the camera on purpose when the lens is collapsed and you will be an happy camper.