Can't log in to psn on pc. pls send help

The black window says \"Sign in\". The notification window is called \"Data directory couldn't be created\" and says \"Microsoft edge can't read from or write to data directory\".

Wanted to play with my friend but have had this problem since i bought the game a few days ago. If anyone has got the solution, then that would be amazing.