So there's a few different issues here, let's break this down.
EGR valve delete: the engine is expecting to recycle exhaust air, and you've prevented that. The code is being thrown because there is no longer an EGR. If you're going to delete it, you have to reflash the ECM to factor in the EGR delete.
The mass airflow sensor: your getting a code reading too little air is going into the engine. This would cause a rich condition. Check your air filter and intake system for blockages, if there aren't any, pick up a can of MAF cleaner or pick up a new MAF.
TPS: you may have gotten one that's bad out of the box, or another issue, namely one if the other two I mentioned, is making the ECM think that the TPS is giving inaccurate readings.
You'll be fine, these engines aren't too complex, just make sure you're actually solving a problem before you pull the trigger on a new part. With a project like this you're going to fix one problem just to reveal another until it's fixed. I had the same thing happen with mine, just be thankful it appears to be mechanical and not electrical. If you want to keep this truck I recommend purchasing some diagnostic tools. Fuel, oil, and vacuum pressure kits, a multimeter, etc. $100 in diagnostic tools will save you thousands in parts and hours of time.
Sent from my SM-G965U using Tapatalk