Resolution stuck on "Custom"

I play on windowed mode on my PC and I accidently clicked on the window border, this happens every now and then as I multitask and usually I am able to fix the resolution in the settings. However this time I can’t set my resolution to anything, no matter what resolution I try to change my game to, it for some reason does not update and stays on “Custom”. I have tried rebooting the game and the problem did not get fixed.