I got this error code, NS_ERROR_INVALID_ARG (0x80070057) when i try to add the custom Kali Linux that is available on the Python cyber security course, to virtual box.
Based on a quick research, the reason seems to be the non-availability of space on the device. Please double-check if you have enough space.
Also, please refer to the following discussion/solutions provided in the discussion for a more in-depth answer/solution to the problem: https://www.virtualbox.org/ticket/18343
Thanks for your help