What solved this problem for me was setting the Authentication Provider in the copilot settings in intellij Tools -> Github Copilot -> General.
Once i did that I could login to copilot from intillij and instead of it trying to use my personal account with password it now tries to login to my enterprise account