As far as I am aware, a string is a scalar so you can't set it to null.
So if you have a map<string, string> then both the keys and values can not be null.
You may be able to try using the StringValue type from the Well-Known Types:
using a map<string, StringValue>, and most integrations will convert the StringValue to a simple nullable string.