The way a 5O5 mast is generally rigged it is easy to get the mainsail too flat in the bottom and middle sections while having the top relatively full.
Too much bend in the middle where the spreaders are? The spreaders are too long for those conditions. Rake less or move shroud bases aft.
Too much bend at deck level? Pull the ram down to straighten the mast at deck level. it is easy to think “I need more mast bend I shall ease the ram. This is the opposite of what you need to do.
Too much Vang can also over-bend a mast.