First Changining a domain name is a simple task it can be a very complex process
so before doing such an action, it needs to be planned very carefully since there may be lots of workstations, servers, users, and applications that use your existing domain should be evaluated you need to create a good migration plan and this change should be worth such an effort.
It's worth noting that changing your on-premises domain name to fix the Azure Files issue might not be the best solution. Depending on your circumstances, there may be other options such as using Azure AD Domain Services (Azure AD DS) or configuring Azure Files with Azure AD DS for NTFS ACLs.