A Microsoft file hosting and synchronization service.
Dear Zhenming Yu,
Greetings! Thank you for posting in Microsoft Community.
As per your description, OneDrive client complained the items had names with invalid characters when deduplication jobs were performed on your machine running Windows Server 2022.
Considering that we mainly focus on general build-in features in OneDrive, we may not have environment to directly check OneDrive client behavior in Windows Server. And we have a dedicated channel Microsoft Q&A Community, for you to be assisted properly, we sincerely recommend you post this question in that community.
At the same time, we also notice you have posted a thread in Microsoft Q&A Community, we would recommend you wait patiently, support engineers over there will help you and share specific suggestions based on the scenario on your side. We are sure that our experts from that team can address your query effectively and accurately.
Thanks for your understanding and cooperation! Hope you keep safe and healthy always.
Sincerely,
Tina | Microsoft Community Moderator