Copy and Overwrite Web Part in Modern experience
The Copy and Move operation is also available as a web part. On modern pages it is called Virto Multiple File Copy and Move and is in the Virto Solutions group. Add it to the page and choose the library and view as described in Adding Upload as a web part.
To copy files and replace files with the same name in the destination, select the files in the left tree, choose the destination library or folder in the right tree, select Overwrite and click Copy or Copy and close; confirm with Ok. For details, see Copy feature in Modern experience.