To make it simpler, consider the ground wire as a backup neutral. Is this true? It's not against the code to put a ground rod at the subpanel. It has to be done by code.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.