Hi,
You have recognised that the behaviors do occur this is a first and vital step toward positive change and growth .
There could be many reasons for this , consult a Psychologist, taking about it will rule out and / or help you manage the underlying reasons causing this behaviour.
You will be able to identify your feelings , be self aware , more clearer on what constitutes grown-up behavior and find healthy coping skills .
Next Steps
Consult a Psychologist