How to live with missed potential gains?

Im fairly young and dont post alot, and I'm probably lucky for what its worth. I wanted to ask how people just go on knowing had they traded differently they could have so much more. One trade I made was selling nvidia at 530 now its almost doubled. Another trade was buying into gme at 15 it dropping to around 12 for a few weeks and I just wanted out so I sold way otm calls for 18, then It popped to the 72$ range. I'm still really young so missing out on these 2x - 4x gains has just left me sad. I live with myself by saying I'd rather learn these lessons with 20k than with 500k later in life. Just wanted to vent and see how others cope with it.