It depends on the car. Not 100% on the Corolla but I'd bet they worked in a safety for low oil. Start by adding some oil. If that doesn't work and it's under warranty I'd call the dealer.
Alex
RepairPal Certified shops can diagnose and repair your 2017 Toyota Corolla. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.