The warning comes as Japan pushes changes to its data protection law to speed up artificial intelligence development.