2027 is still a ways off, so max your contribution and stick with it.
I certainly don't intend to work that long and my TSP is 100% L2050 for new contributions, and about half L2040 for old contributions, despite my intention to retire within five years. You're only earning 1.5% on the G-fund, so I'd start making monthly transfers from G to the L fund of your choice. Any of the future ones are fine, if they match your risk tolerance.
The way I see it, if the market takes a huge shit in the next five years, then everything will suddenly be on sale (lower in price) and I'll benefit greatly by sticking around to make new contributions until it recovers. The great thing about youth is that it buys you options. The worst case scenario is retiring at 45 instead of 40, which is a much easier decision to deal with than facing the same choice when you're 65 and in failing health.