Sorry to hear about your diagnosis, still, it's better to know now and be proactively prescribed an epipen. Unfortunately though, that prescription puts you in the Class 1 OML class. Assuming what you've said is correct and the diagnosis is as you described, according to the UK CAA website, you should be able to obtain a Class 1 with OML.
https://www.caa.co.uk/media/rb2aq5qm...flow-chart.pdf
Note, I am not a doctor or AME.