This is a known issue: Poetry Issue 10032 More context in 10031 and 10033 issues too.
Even with package-mode set to false, Poetry 2.0 mandates the presence of the project.name configuration but should be disallowed according to PEP 621.
I believe some documentation updates have been made to clarify this as shown in issue 1033.