First, just because you were in the US for less than 183 days in 2023 doesn't necessarily mean you don't pass the Substantial Presence Test for 2023. You pass the Substantial Presence Test for 2023 if you were in the US for at least 31 days in 2023 and:
(the number of days you were in the US in US in 2023 + 1/3 the number of days you were in the US in US in 2022 + 1/6 the number of days you were in the US in US in 2021) >= 183 days
So you could still pass the Substantial Presence Test for 2023, and thus be a resident alien for the part of 2023 after you arrived, even if you were in the US for less than 183 in 2023 if you were in the US for significant amounts of time in 2022 and/or 2021.
Second, even if you don't pass the Substantial Presence Test for 2023, if you were in the US for some continuous period of 31 days at the end of the year, and you pass the Substantial Presence Test for 2024, you have the option to use the "First-Year Choice" for 2023, which will make you a resident alien for the part of 2023 after you arrived.
Third, I don't see anything that says nonresident aliens cannot claim this tax credit. The form to claiming this credit for vehicles put in service in 2023 and later, Form 8936, and its instructions, refer to 1040-NR, so it seems that it can be filed by nonresident aliens.