The warranty that you get will depend on a few factors e.g. Where you bought it from (Parrot website, store or onlune) and where in the world you are. We had a member who bought an Anafi from Dubai Airport duty free whilst on holiday and he was advised by Parrot to contact the seller for replacement when it went wrong. If you have bught from the Parrot website then the terms and conditions will be on there. Otherwise if it crashes, and it is not your fault, Parrot may ask to to contact the seller to get a replacement. Different countries have different consumer protection laws which sellers have to comply with.
If you put where in the world you are in your profile members may be able to offer country specific advice.