The simple answer is, you should report the accident as soon as possible. In many cases insurance companies have 24-hour accident claim on mobile apps and hotlines.
Many insurance companies need policyholders to make claims within the specific time window of the accident occurring. But these limits are specific to each policy. If you are unsure about what is the appropriate time period within which you have to make a claim, then you can ask your insurance agent.