Activate a graph window
Press H to activate data highlighter, do not highlight anything.
Then, press C to create category
==>Error: Argument (unknown) passed into function is invalid
Fixed in Origin2025b. If nothing highlighted, then press C enter curve line mode. If some data highlighted in graph, press C will open the create category dialog.