Hi,
I did some research and found a similar case which may be helpful to you:
Renaming an AD Domain with ADFS and O365 -- finding issues before we begin
https://community.office365.com/en-us/f/155/t/432431
In addition, Since renaming an AD domain which is federated with Office 365 is complicated and most of tasks are changed from the on-premises server, it is better for you to visit the dedicated ADFS support Forum. It is also appreciated that the other members
in our forum can share their experience with us about this scenario.
ADFS forum
https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=ADFS&filter=alltypes&sort=lastpostdesc
Best Regards,
Alvin Wang
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.