Unfortunately, if you lose your LPSO code, buying a new one is the answer that was given.
That reflects how these codes generally work. A single-use redemption code tied to a product or membership has no recovery mechanism once it is gone, because there is nothing on the account side to link it back to you. Retail codes are treated like cash in that respect.
Before you spend money again, it is still worth contacting the game's support team. Explain what happened, provide whatever proof of purchase you have, and ask whether they can help. Some publishers will reissue a code as a courtesy, particularly if you bought it through their own store where the transaction is on record. It costs nothing to ask, and the worst outcome is the answer you already have.