Learn to reset whenever the feeling creeping in is starting to take over your trading - as then you’re no longer making sound decisions based on analysis and price action, you’re stress trading, revenge trading - call it what you will but it will mess up your account and add further stress to you at that current moment AND when you return.
Realise, look inward at why you are feeling the way you are, recognise it, reassess or get up, move away and relax for a bit before returning and looking at it logically again. Repeat.
I hope the advice people provide helps you, you take it on and improve - it all takes time. Enjoy the journey brother.