It should not. You can compile for any board you like because this process only occurs on the computer. It's only the upload process that requires the board to be connected.
Please do this:
- Start File Explorer (AKA "Windows Explorer").
- Open the Arduino IDE's installation folder (usually
C:\Program Files\Arduino IDEorC:\Users\<user name>\AppData\Local\Programs\Arduino IDE). - In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
- From the context menu, click "Open PowerShell window here". PowerShell will now open with the current directory set to the Arduino IDE installation folder.
- Type
& ".\Arduino IDE". - Press Enter. Debug output should now be printed to the PowerShell window as the Arduino IDE starts (or fails to start).
- Wait for the Arduino IDE to finish starting.
- Compile a sketch.
- Wait for the error to occur.
- Switch back to the PowerShell window.
- Right click on the title bar of the PowerShell window.
- Click Edit > Select All. This will select all the text in the PowerShell window.
- Press Ctrl+C. This will copy the contents of the PowerShell window to the clipboard.
- In this Arduino forum thread, click on the reply field.
- Click the
</>button on the forum toolbar. This will add the forum's code tags markup (```) to your reply, making it easier for us to read. - Press Ctrl+V. This will paste the output between the code tags.
- Move the cursor outside of the code tags before you add any additional text to your reply.
- Click the "Reply" button.
Hopefully that will contain some additional output that will give us some information we can use to help you with the problem.