Please confirm that the instance name in the connection string is correct and that the firewall is not causing any interference. You can try to reconnect SSAS following the example steps, Connect using Visual Studio
or refer to the troubleshooting methods in this link.
Regards
Mikey Qiao
If you're satisfied with the answer, don't forget to "Accept it," as this will help others who have similar questions to yours.