Hi,
Medications should always be taken under the supervision of a physician. Self medication can be detrimental for health.
Petril can be magic pill for anxiety, but at the same time it can lead to dependence (addiction) and stopped abruptly, it can cause withdrawal syndrome, which further worsen your situation.
Next Steps
Consult with both psychiatrist and gastroenterologist for better management of IBS