In order to transfer files via WiFi Direct, you must enable 'Modify System Settings'.
Please configure the permissions according to the following:
Allow Modify System Settings
Device Settings > Application > Configure Apps > Modify System Settings > Send Anywhere > Allow set to ON.
※ The location of permissions menu may vary depending on device model. Ask your device manufacturer about how to access your device model’s settings menu.