My wife is getting severe panic attacks and severe pain in her heart. We went to the doctors and all the reports were fine. Later we went to a Pir, he said she might be under influence of sahr and then He gave us many taweez to drink, burn, to beat one taweez with slippers and one taweez to wear. The taweez contained numbers, boxes and Sacred Names of Muhammad, Ali.
Am I allowed to do this? If not than what is the remedy. I cannot see her in pain. It even scares her when I read Quran in front of her

I don’t recommend following those instructions about the Taveez. Sometimes doing those things have worse long term effects.

I recommend the following:

1- Have her wear the Herz of Imam Jawad (a) and Imam Redha (a).

2- Slaughter a sheep in your house if you can. If not then elsewhere and have it be given to the poor with the intention of having your wife cured from this condition.

3- Search for any strange objects in the house and throw them in a river or lake.

4- Bring a pair of pigeons to your house if possible.

5- Write Ayatul Kursi and hang it on the wall of each room.

6- Read this Du’a daily:

https://www.duas.org/Amn.htm

7- Recite Hadith al-Kisaa’ on seven dates and let her eat a date each day for seven days.

8- Read this Du’a then when finished reading it ask Allah to cure her:

اللَّهُمَّ رَبَّ السَّمَاوَاتِ السَّبْعِ وَ مَا بَيْنَهُنَّ وَ رَبَّ الْعَرْشِ الْعَظِيمِ، وَ رَبَّ جَبْرَئِيلَ وَ مِيكَائِيلَ وَ إِسْرَافِيلَ، وَ رَبَّ الْقُرْآنِ الْعَظِيمِ، وَ رَبَّ مُحَمَّدٍ خَاتَمِ النَّبِيِّينَ ، إِنِّي أَسْأَلُكَ بِالَّذِي تَقُومُ بِهِ السَّمَاءَ، وَ بِهِ تَقُومُ الْأَرْضَ، وَ بِهِ تُفَرِّقُ بَيْنَ الْجَمْعِ، وَ بِهِ تَجْمَعُ بَيْنَ الْمُتَفَرِّقِ، وَ بِهِ تَرْزُقُ الْأَحْيَاءَ، وَ بِهِ أَحْصَيْتَ عَدَدَ الرِّمَالِ وَ وَزْنَ الْجِبَالِ وَ كَيْلَ الْبُحُورِ، ثُمَّ تُصَلِّي عَلَى مُحَمَّدٍ وَ آلِ مُحَمَّدٍ

May Allah grant her a speedy recovery.