I think some dogs are just prone to this and it wouldn't be anything you did that could prevent it from happening.
I don't have any personal experience with this disease but googled "treat canine lymphoma" and there are a lot of links. Most say caught early and with treatment 50% go into remission.
I hope you can find some helpful information.
Piper, you, her family and friends are in my thoughts and prayers.