That happened immediately after the Allies took over control and left the Reichbank to print money as it wished.
Not so, closing days of the war right before Berlin got steamrolled.
After that was the usual chaos of post hostilities rebuilding.
The “Great War” saw something similar where the D-mark got devalued heavily towards the end of the war.