One drive creates duplicate files with the computer name at the end of the file name.
This issue occur because of the same file access by two locations with the same account.
Follow the steps below
Sign out from one drive
Removed One rive Cache passwords in credential manager
Sign in to OneDrive
Turn off the file on demand
In the office tab in OneDrive settings remove the tick from "Use office applications to sync Office files that I open"
If all above steps did not work. Right click on the folder where the duplicate files are creating then select "Keep this always in this device"
It will download the flies to your device
This will resolve the issue for now