In settings > output > recording, you need to change your recording path to be in a folder you can actually output to.
I would never recommend putting recordings into Program Files, even if you could do this if OBS was ran as Admin.
I have a folder in My Videos for OBS Recordings, does the job for most people