Not able to Reinstall MacOS in Internet Recovery Mode
Do you have access to another Mac? If so, I'd download the OS installer to that machine, and use it to make a bootable USB stick via the createinstallmedia tool which is inside Contents/Resources in the installer's app bundle. Then, boot your Mac from that USB stick and all should be well.

Alternately, connect your Mac to another Mac via target disk mode and install it from a fully-booted macOS installation that way.