You are making the classic mistake that, because a lot of people are investing in AI, there is nothing else worth investing in. There are plenty of sectors worth investing in, everyone is dumping money in AI because you can make a fortune on the stocks.
For instance, self driving cars will be a huge market. Several promising startups failed or reorganized because funding dried up, as investors shift their money into LLM based AI tech, which doesn't help self-driving cars at all.
Think about it this way. If AI goes away, will nVidia fail? Even before the huge demand from AI, they were the most successful graphics company. They use their GPGPUs in supercomputers. They are the go-to for gaming.
The other factor is AI isn't going away. The AI bubble burst will be like the .COM bubble burst in 2000. A lot of startups will go under. Most established companies will take a licking, but will be fine (Oracle is in a LOT of verticals) AI will still be around.