It seems the problem was actually the power supply, which stopped working correctly.