Most travel insurances have some type of time limit on trips. "Your covered for trips up to 90 days" or something like that. Again, every company and policy is different. As for thai law, there is no law that limits the validity of an IDP or restricts its use based on your visa.