I used the OTP profiles here:
https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-email#add-otp-technical-profiles
I don't know the details of what you are trying to do, but this works for email at least. Could it be you have a typo or syntax error in the profile you have defined?