Per wiktionary (
https://en.m.wiktionary.org/wiki/founder)
Usage Notes:
Frequently confused with flounder. Both may be applied to the same situation, with the difference being the severity of the action: floundering (struggling to maintain position) comes first, followed by foundering (losing it by falling, sinking, or failing).
I think “flounder” is fine in this context.