Is it permissible to consume a product that contains porcine-derived pancreatin if it helps with my long-standing digestion, heartburn, brain fog, and body pains?
No. Everything from the pig is Najis and consuming Najis item is impermissible. You can search for an alternative which is not porcine derived. If you find an injection containing that material then it will be permissible to inject it, like injecting porcine pancreatic insulin which is permissible, but consuming any porcine derived material is not allowed at all.
Wassalam.