you listed your frame size but not your size
I have only endo’d going uphill once in 35 years and it was because the frame was too small…just fyi
unless you grabbed your front brake, a front endo uphill is virtually impossible! I applaud you for that, but maybe your frame is too small???