Msg.sender.transfer runs out of gas on a payable upgradeable proxy contract

A post was split to a new topic: How to receive Ether to an upgradeable contract from a contract using msg.sender.transfer