I will be very surprised if your guinea pig lasted the entire night without eating or drinking anything. When guinea pigs do not eat or drink within a few hours their body begins to shut down and they will die if not force fed or treated. Their digestive system needs to be constantly moving which is a reason they need hay 24/7. Your guinea pig probably had bloat, which is usually caused by not eating (or eating too many gassy vegetables like broccolli, bok choy, cauliflower etc). It is a build up of gas and makes their stomach huge and as firm as a ball. They will feel pain when you touch their sides (like you described). This is deadly if left untreated. Like Fay, I am not being rude or trying to scare you, I'm simply trying to inform as my guinea pig died just the other day from bloat. He did not eat or drink anything for about a day (that's all the time it took) and I took him to the vet but it was too late. Did your pig make it to the vet?