E-bike battery fires in Yosemite and Grand Canyon national parks have triggered a warning.