Hi there,
Here are the possible causes and solutions for your issue.
-Your password may be expired, or your account may be locked out or disabled.
-Your saved password in the Windows credentials store could be incorrect or expired (especially when you use PnP PowerShell module Connect-PnPOnline to get credentials from the Windows Credentials store)
-Instead of using the User name and password, you can use App ID & Password: How to Connect to SharePoint Online using AppID and AppSecret in PnP PowerShell?
-Last but not least: You may have a conditional access policy setup in your environment. Exclude your user account from it.
Connect-SPOService : The sign-in name or password does not match one in the Microsoft account system
-------------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer–