Rivian Automotive Inc., the electric-vehicle maker backed by Amazon.com Inc., is scouting locations in Europe to build a new factory, according to people familiar with the matter.