I've confirmed that it works with Blender 4.2, but after some research, I found that the addon that supports 3MF files (Blender 3MF Format) doesn't work with Blender 4.4 and later.
The D&D addon also doesn't work because it internally calls the addon's import function. If possible, please use a version of Blender older than 4.4.
A previous comment had the same issue, but my .3mf files don't work, and they display the same error message the previous commenter had.