Hi Kaja_SHA,
From your description, when you import an Excel table to SharePoint Online site list with two different methods, it popped up the above two error message. I have also tried creating a table in Excel and import
to one of my SharePoint site according to these two articles “Export an Excel table to SharePoint”
and “Create a list based on a spreadsheet” which both methods work from my side. Based on the
error messages, it seems that Excel cannot establish the connection with your SharePoint site.

To help us further narrow down this problem, may I know the following information?
1: What is the extension name of the workbook you created? The sample file I created is .xlsx.
2: Did this issue happen in all the sites that you tried exporting the Excel table to SharePoint? You can also try exporting the table to the other SharePoint site. If it is convenient, you can create a new SharePoint
site and a new Excel file to import the data. It can help us to determine whether the problem is related to the site or even your organization tenant.
3: When did this problem occurred? Do the other SharePoint site editors have the same problem?
Best regards,
Dihao