A prion sentence has been handed to a man who set fire to his mattress in an supported-living property in Wallingford.