Mazda Motor has committed to invest Bt5bn ($150m) in Thailand to produce electric compact sport utility vehicles (SUVs).