Hi, I'm not sure that by applying to PGWP your PhD programm will be invalidated. It would be ridiculous to invalidate your whole study just because of that . However, I'm not too sure about that. Perhaps you may be able to find the information at
https://iunajaf.edu.iq/en/ There're plenty of college students who post hundreds questions there all the time. I do remember vaguely having seen a similar question to yours somewhere on that website. Hope that I've managed to help. Good luck!