Under the centuries-old principle of sovereign immunity, the government can simply choose not to be liable for anything at all. Sovereign immunity is the default for most countries now, and throughout history.
The US and the countries of the EU are relatively unique in allowing themselves to be sued for damages for their failures.