There have been a couple cases on YT of dogs with a bot fly. It does something like lay an egg that produces a larvae that creates something like what you are describing.
I would definitely have it checked out ASAP to have the vet determine what the lump is.
__________________ Kristin, Max and Teddy |