I’ve read through your messages and noted the things you’ve already looked at. I assume you’ve pulled the heads to replace the MDS solenoids, so I assume you replaced the head gaskets. The set condition for a P300 indicates a crankshaft differential between cylinders either based on RPM or engine load. A flashing MIL indicates severity. I'm not sure, but are there any other stored codes?
Things you may not have checked:
Engine oil system issue. Low or aerated oil, low oil pressure, incorrect or defective oil filter.
Low fuel pressure
Exhaust restriction.
Engine vacuum leak; intake restriction
Low compression
Internal EGR malfunction
Engine valvetrain or VCT issue (crankshaft position sensor)
Regards,
Dusty
2019 Ram 1500 Billet Silver Laramie Quad Cab 2WD, 5.7 Hemi, 8HP75, 3.21 axle, 33 gallon fuel tank, factory dual exhaust, 18” wheels. Build date: 03 June 2018. Now at: 063977 miles.