Microsoft Graph API provides the option to update the birthday information for the user in Profile. So, there is no need to use SharePoint User Profile to update it.

Follow the below steps to update the birthday information for the given user,

Update Birthday information for the user