Welcome to DoctorSpring.
Morning erection is not a permanent feature in life. You may not experience morning erection for months together and it does not mean that you have developed any erectile issues and cannot have erection at other times. And by adulthood a good number of individuals might not have morning erection most of the times.
You should stop worrying about erection and you shall be absolutely fine in a few days.
Hope this helps
Please feel free to ask followup questions