Let me tell ya - this is familiar! I used to have a temper that could ignite in a second and with enough fury to explode mountains. It showed up before I could talk and continued for years.
And, like you, it really bothered me. I would pray to God to take it away often, I would try so hard to control it. I would promise myself that "from this point on I won't explode anymore!" And all of that fell flat.
But then a wise Christian showed me this: ""Yes, I am the vine; you are the branches. Those who remain in me, and I in them, will produce much fruit.
For apart from me you can do nothing." John 15:5.
See? We are the branches rooted in the Life, the Vine, Christ Himself! We draw our Strength to overcome straight from Him! If we are willing to let Him do it, He will. He helps us overcome all things (like foul tempers) and produce His fruit. Besides, the old you with that foul temper is dead! It was crucified with Christ! "I have been crucified with Christ and I no longer live, but Christ lives in me. The life I now live in the body, I live by faith in the Son of God, who loved me and gave himself for me." Galatians 2:20.
Now you have a new nature, rooted in Christ Himself! And the fruit of that new nature is "love, joy, peace, patience, kindness, goodness, faithfulness,23 gentleness, and self-control..." Galatians 5:22-23. That fruit is the opposite of a quick temper, and that fruit is produced by the Spirit, not our own attempt to do so. "But the Holy Spirit produces this kind of fruit in our lives..." Galatians 5:22.
The key here is to believe the Truth Christ has given, and to say yes to His help and power.