arcpy.findandReplace tool may crash if run on an ArcGIS online map layer
Answer
The arcpy.findandreplacepaths tool does not support ArcGIS Online layer types. This error may be avoided by specifying in the Python script to only update the sources of supported layers. Below is a basic sample script.