I’ve changed my gmail account password and my actual apple account just in case, which is not even linked to that account.
You have already taken the right steps 👍
-----
I received 3 emails telling me . . .
It is scam / phishing.
See the following Apple articles
If you think your Apple ID has been compromised
If you think your Apple ID has been compromised - Apple Support
Recognize and avoid phishing messages, phony support calls, and other scams
Recognize and avoid phishing messages, phony support calls, and other scams - Apple Support
⤵️
If you receive a suspicious email or SMS text message that looks like it's supposed to be from Apple, please email it to reportphishing@apple.com.1
If you receive a suspicious FaceTime call or link to a FaceTime call in Messages or Mail, please email a screenshot of the call information or link to reportfacetimefraud@apple.com.
How to report suspicious emails, messages, and calls
- If you receive a suspicious email that looks like it's supposed to be from Apple, please forward it to reportphishing@apple.com.1
- If you receive a suspicious FaceTime call (for example, from what looks like a bank or financial institution), email a screenshot of the call information to reportfacetimefraud@apple.com. To find the call information, open FaceTime and tap the More Info button next to the suspicious call.
- If you receive a suspicious link to a FaceTime call in Messages or Mail, email a screenshot of the link to reportfacetimefraud@apple.com. The screenshot should include the phone number or email address that sent the link.
- To report a suspicious SMS text message that looks like it's supposed to be from Apple, take a screenshot of the message and email the screenshot to reportphishing@apple.com.
- To report spam or other suspicious emails that you receive in your iCloud.com, me.com, or mac.com Inbox, send them to abuse@icloud.com.
- To report spam or other suspicious messages that you receive through Messages, tap Report Junk under the message. You can also block unwanted messages and calls.
- Report scam phone calls to the Federal Trade Commission (U.S. only) at reportfraud.ftc.gov or to your local law enforcement agency.
After you reported, remove that 3 emails, and see -> Clear the history and cookies from Safari on your iPhone, iPad, or iPod touch
Clear the history and cookies from Safari on your iPhone, iPad, or iPod touch - Apple Support
-----
Read also Gmail Help:
https://support.google.com/mail/answer/1074268?hl=en#zippy=%2Ci-think-the-email-is-a-scam