Up/down problems could be from damaged firmware. Have you already backed up and tried to refresh or update the firmware?
We had a similar situation where one port died. Then another...and another. We had to shuffle ports until it stopped with 8 ports gone.
If we replaced with clean firmware and default configuration, all ports worked fine.
As soon as we re-loaded our configuration, the ports started dying again. We ended up updating firmware to current, then re-building the configuration as close as possible to the old. Helps if you have documentation (human-readable!) of how/why the switch is configured. Especially routing, VLANs, LAGs, etc.