The Xbox was overheating, so I dusted the vents and now it's fine.