This article explains how to manually disable NameDrop.
How to Turn Off Contact Sharing on iPhone (Disable NameDrop)
NameDrop, an extension of AirDrop, is enabled by default when you download iOS 17 or purchase a new iPhone running iOS 17.1 or later. This means you'll need to manually disable it in your iPhone's settings menu.
To disable NameDrop, follow these steps:
Open the Settings app.