Getting an error -[ERR_INVALID_ARG_TYPE]: The "path" argument

I have tested this with the latest version of Strapi (v4.25.3) and I am able to reproduce this issue. With a relatively older version (v4.13.5), this does not happen. I am able to create components in a Strapi application bootstrapped with v4.13.5. But when I do it with a Strapi application bootstrapped with v4.25.3, I get the error.

A possible fix for time-being until this issue is fixed could be to downgrade the Strapi version.