Whilst it is appropriate to be concerned about the emergence of aggression in your practice, be aware that we all possess 'good' and 'bad' aspects of our nature. It is part of what makes us human.
Do not let the unpleasant insight weigh too heavily upon you. Learn from the experience. Have awareness.
But do not be too hard on yourself. Just be careful. That's all.
Any martial art worth learning involves risks, dangers and opportunities to come face to face with our inner demons. What matters is not the demons themselves but how we choose to cope with them.