pixiv recommends that you do not share your personal information with people you don't know. You are responsible for handling your own personal information, so please handle it with care.
You can use the block feature to stop receiving messages from a specific account.
Learn more about the block feature
If you prefer not to receive messages at all, you can limit the accounts you receive messages from via "Message settings".
Learn more about message settings