I usually wake up early for subh prayer but sometimes I wake up late even if I set up an alarm and even if I go to sleep at a early time. Is there a reason for this? Is allah(swt) upset with me? Another reason I thought about is that I pray salatul layl and then go to sleep after I pray a rakat. What may be the reasons for this?

It doesn’t necessarily mean Allah is upset with you. But do make a greater effort to wake up. As a family/friend to wake you up. Put a louder alarm. Before you sleep, remind yourself that you have a special appointment with Allah at fajr. This helps.

Also, read this Dua before you sleep:

اللهم! لا تؤمني مكرك، ولا تنسني ذكرك، ولا تول عني وجهك، ولا تهتك عني سترك، ولا تأخذني على تمردي، ولا تجعلني من الغافلين، وأيقظني من رقدتي، وسهل لي القيام في هذه الليلة في أحب الأوقات إليك، وارزقني فيها الصلاة والشكر والدعاء حتى أسألك فتعطيني، وأدعوك فتستجيب لي وأستغفرك فتغفر لي إنك أنت الغفور الرحيم.