AI stocks are getting battered despite healthy growth, which is why now would be a good time to invest in this sector from a long-term perspective.