Honestly, sounds like more than coincidence. I had almost the exact same problem with a 2017 C4 BlueHDi — AdBlue fault, pressure too low, countdown started, and nothing helped until I messed with the ECU harness.
These connectors aren’t sealed very well against weather, especially after a few years. Just touching or moving the plug might’ve cleared up oxidation or slightly reseated a weak pin. I’d clean the pins and maybe add a zip tie or light clamp to keep the connector tight.