If pio check completes but the GUI shows “invalid params”, then “just” the GUI part may have errors. Can you file an issue in Issues · platformio/platformio-vscode-ide · GitHub with a minimal project and code that reproduces the problem?
Ah. Hm no, I don’t see a way to trigger a memory check from the CLI in exactly the way the “PIO Inspect” page would do it. Best you at least do would be to add build_type = debug (docs) in the platformio.ini and build again – that would be the first step to generate the firmware with the debug symbols, as PIO Inspect would do it.
If that fails, you have something to go on. If that goes through, then still, file an issue at the link above.