Storage space error message?

So I tried running my code, and there are no syntax errors but got this message:

"Sketch uses 2,504 bytes (7%) of program storage space. Maximum is 32,256 bytes.
Global variables use 222 bytes (10%) of dynamic memory, leaving 1,826 bytes for local variables. Maximum is 2,048 bytes.
An error occurred while uploading the sketch
avrdude: ser_open(): can't open device "COM1": No such file or directory"

The message is not about the memory, you are fine, you've plenty left...

The message is about the Selection of the right port where you arduino is connected - most likely COM3 , COM4 , or COM5 for a USB board - not COM1

Go change that in the menu.

J-M-L:
Go change that in the menu.

Sorry, kinda new to this type of error but, which menu?

Read this page and the part about

Board
Select the board that you're using. See below for descriptions of the various boards.
Port
This menu contains all the serial devices (real or virtual) on your machine. It should automatically refresh every time you open the top-level tools menu.

Or see the images on that one

Then There are 3 post with a blue pin at the top of the forum read them. They are titled:

Read this before posting a programming question ...
Useful links - check here for reference posts / tutorials
How to use this forum - please read.

Suggest you start there.