Inflation was a problem long before fiat money. It affected the Roman Empire whenever large amounts of gold were added to the money supply through conquests - in fact they understood this at some level because they usually kept it in the temple of Zeus, but in economic downturns they would raid this piggybank.
Another historical example is hyperinflation in Spain caused by the huge influx of silver from their central and South American conquests.
Yes, the government doesn’t have a checking account. When it spends money, that money is created and its balance sheet grows. When it receives taxes the balance sheet shrinks as the money is destroyed. If there’s a gap it gets filled by issuing bonds. Thats the national debt. These are conventions, not absolute rules, so governments can go rogue but it doesn’t end well
But, there is no fixed quantity of money in modern finance. It's created every someone or some business takes out a loan from a bank, and every time the government spends money. It's destroyed when the loans are repaid or taxes are paid.
Another historical example is hyperinflation in Spain caused by the huge influx of silver from their central and South American conquests.