Normally, the broker wouldn't tell you it has to be returned by a fixed date, but as in the case of GME, the fees you pay on the loan may be variable so it becomes a game of how long can you hold your breath underwater. To use your example, if you borrowed a stock at $100 to sell, repurchased at $50 to close out the short your profit would be $50 less the fees you paid for the loan. Those fees could easily wipe out your "profit."
I am 80% there.
Thank you for your patience.