What kind of monitor do you have?
Do you have the drivers for the monitor installed?
What is your graphics card?
Do you have the latest drivers for your graphics card installed?
Is it Battlefield 2 or Windows that is giving you the error?
This thread might give you some helpful ideas to try.