Normally that power loss you describe points to lack of fuel from lift pump.
New parts are not always good parts… having low lift pump pressure not only causes lack of power but wears out the expensive and pain to replace ip (injection pump). Adding a metal T at the fuel inlet for a fuel pressure sensor and permanently mounting fuel pressure gauge where you see it while driving is a worth while investment.
Many people put temporary gauge tapped off the ffm, drain valve, etc but never get correct reading and replace good ip, or sometimes diagnose ip as good when it isn’t. Hence the location and fitting being in metal section not rubber.
ModMafia.com sells a perfect adapter fitting. Not sure if any of the guys here found lower priced sources.
You should never get below 1psi- if so you are doing a lot of damage to the ip.
1psi-7psi will keep it running but ip have a shortened life. 8-14 psi is where it should be from idle to wot towing heavy load.
Replace the 6” long black 1/4” diameter return fuel line, coming out of the top portion of the IP with a clear hose. The best line That I found for this was from fuelline.com. Many people, including myself, I’ve just use the clear to be available from hardware stores sold by the foot. Do you need screw style hose clamps for securing it. The line from the hardware store will last 3 to 5 years before needing replaced, but only takes five minutes and cost about five dollars. Leave the clear line in place permanently. Whenever you have a problem with the system simply look at that line for any contamination or bubbles flowing through it. The bubbles are sign of aeration , most commonly air intrusion before the lift pump. These air bubbles can cause a menagerie of problems.
You absolutely have to ensure there are no bubbles in the line, how do you have proper fuel pressure going into the IP before proceeding with any other repairs. Either one of these two problems or both could absolutely cause all of you listed problems.