It might be an obsessions of harm, a part of OCD.
There is a probability for OCD to develop in panic disorder, how ever detailed evaluation is needed regarding the severity of the symptoms.
Next Steps
consult your psychiatrist.
Health Tips
It is treatable, don't worry.