The issue is that when calling POWER_SYS_SetMode to enter VLPS mode, it takes about 16ms from the start of the function until it reaches STANDBY();.
During this 16ms period, if a GPIO interrupt (ACC ON) triggers, it does not prevent VLPS entry—the function continues executing until STANDBY();. Only after STANDBY(); is executed does an interrupt become necessary to wake up the MCU from VLPS.
Is there a way to ensure the GPIO interrupt can abort the VLPS entry process if triggered during this 16ms window?