The message you're describing sounds like a common type of tech support scam. Legitimate security warnings from Windows Defender will not ask you to call a phone number. Here are steps you should take:
Do Not Call the Number: This is likely a scam designed to get money or personal information from you.
Run a Virus Scan: Use Windows Defender or another trusted antivirus program to scan your computer for malware.
Disconnect from the Internet: This can prevent any potential malware from communicating with a remote server.
Do Not Provide Personal Information: If you did call the number, do not provide any personal, financial, or computer access information.
Seek Professional Help: If you're unsure how to proceed or the problem persists, consider taking your computer to a trusted professional for help.
Update Your Security Software: Ensure that your antivirus and operating system are up to date to protect against the latest threats.
These types of scams can be very convincing, but it's important to remember that legitimate security software or operating systems will never ask you to call a support number in this manner.