Looks like, this is a known issue when the resource group where you try to create the Linux Function contains a certificate which is associated with one of the services like web app in the group. If you can't delete the certificate, try to create the function in a different resource group. If you are in a position to delete the certificate, try creating the function by after deleting it.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--