At normal airports and non-shutdown times 5 1/2 hours would be a walk in the park in MIA while at any time, let alone now, the 2:22 option done before departure is too close.
Arrive at MIA, go through the circus especially the security - if you don't have TSA Pre-check and you see connections security is backed up 10 miles, try exiting the secure area after customs, re-enter and check the E gates. E is a smaller terminal and is connected to D anyway. People with D boarding passes will queue at D even though you can use E thus often E is faster.
Once past the zoo if you enter at E try the E Admirals Club up the elevator as soon as you clear E security or if you clear security at D (or at connection security) try the D15 lounge or the new D30 combo club and see if they will change the flight.