Sounds to me like the flash ic is dying. If phone works normally for some time then reboots start occuring for no reason then this indicates the flash ic is loosing some data. You could try reballing it but I'd suggest you take it to your nearest service center.