Configuring preferences and options in Outlook.com
Try making sure your microsoft 365 account that you want to import to is the DEFAULT account. Go look at accounts under the settings and choose perhaps your microsoft 365 account as the default. Thank go back and try to import the ics file. If that doesn't work, make a different account the default account and try again.