It sounds like you somehow managed to specify a size too large for your screen.
Go to Section 5 in this post and only changed the values in a and b. After that your game should be reset to the smallest resolution and you can pick the correct one from in game.