I had this with my girl Lottie, she was 2 years old at the time, had sudden hormonal behaviour and extreme weight loss, slightly crusty nipples which weren't swollen, she didn't have hair loss either. She just seemed angry and miserable all the time, was too busy attacking her friends and wouldn't eat, I even had to separate her because she caused fights. She was stroppy with me too, hated being handled and i did get bitten once.
I already had two sows previously that had ovarian cysts, ironically it was her mother and sister, so I was sure Lottie had it too. I had her scanned and nothing showed up, she was tested for pretty much everything and all results were inconclusive.
I decided that i wanted her spayed. When the vet got in there her ovaries were actually normal. My vet called me and asked if I still wanted her spayed, I said yes since she was already there and prepped. We likely caught ovarian cysts super early with her, cysts would've likely popped up later on and she was only getting older and weaker, I didn't want to wait for something bad to happen.
We haven't looked back since, all of Lottie's problems went away, she is now a happy go lucky chonky girl. She is also very submissive and friendly with other piggies now, even strange new piggies, this is a complete personality change. Her temperament is almost golden retriever like now, she loves everyone, everything and enjoys life.
Now, I've had a total of 5 piggies spayed, I did lose one shortly after surgery due to a reaction to the anesthesia, she was an older girl though who had other health issues and pyometra. Three of them were 2-3 years old, otherwise healthy and recovered perfectly fine.
My last girl was spayed 4 days ago, she has ovarian cancer opposed to cysts though, she was spayed and had a huge tumour removed from her stomach at the same time, she's also 6 years old, emaciated and was under GA for 2 hours, so her recovery has been a bit more rocky, but she is doing well overall and made it through surgery. Her case alone shows how strong these little potatoes can be, even when all the odds are against them.
I have had so many of my sows get reproductive issues, more than half, it seems way more common than people think, or perhaps I've just had bad luck.
But for Lottie specifically, I don't regret spaying her, even though her ovaries appeared fine. She is my favourite girl, knowing she will never go through what my other sows have gone through gives me so much peace of mind.
With regards to your girl, only you and your vet can make that decision, it can be risky and is an invasive surgery, but given the symptoms you've said she has, it does seem to be hormonal, perhaps you have also caught it early like I did with Lottie.
I wish you and your piggie all the best ❤