Please just calm down, I know the feeling of having something you worked days on only to be ruined.
But please don’t kill (or hurt) yourself over it.
Back away from your work, leave the room, go outside and stretch, do some breathing exercises.
Just try to calm your frustration, don’t hurt yourself out of anger, or it will become a habit.