IIRC, the B in Cardi B is a reference to her being a member of the Bloods. At least, from what I heard. I don't know 'hood lingo. If so, it's literally her repping her gang.
"Megan Thee Stallion" on the other hand, fuck if I know, probably just a jumbled assemblage of words.