For anyone hitting this post with the same error:
I also got this error, but I fixed it by selecting one of the default slicing profiles like "Dynamic Quality - 0.16 mm".
So I probably created the error by selecting something odd in the Advanced profile settings.
Starting with a fresh profile and adjusting settings and checking regularly if it's still working seems like a good idea...
I should probably post the error on the Cura GitHub repo, but I was more interested in fixing my immediate problem.
Sorry, about that 🫤