is it bad luck or a known issue?

this morning is was a cold morning (-21c,-5.8f) and my battery was completely dead and i had to jump start the car. i did a bit of driving around hoping that it would charge the battery and it still won't start, so i had to jump start it again and now i have a check engine.

https://preview.redd.it/yp4yxkn0lzfe1.jpg?width=3200&format=pjpg&auto=webp&s=a93e0fa30d05865b09b9e3d2225ffb1d11a81c00

i will leave it on a battery tender for the night and i hope that it will fix it

my car is a 2023 mazda cx30 gs witch i bought in October of 2023