Tom cats can get aggressive especially during heat season which is currently going on, plz don't blame yourself as something in you makes him hate you, it's just their hormones making them behave like this.
Next Steps
I recommend getting him Neutered which will help reduce his aggression and alterations in behaviour