Double jeopardy would stop the state from continuing with the prosecution, and the pardon means no consequences.
I hate that I consider this an actually possibly.
https://en.wikipedia.org/wiki/Gamble_v._United_States
[1] https://youtu.be/8Gv0H-vPoDc?si=GLlj48cMtoKYVCRP