Gosh, if only someone collated data from accident reports.
Oh, wait.
The following is from my homebuilt aircraft accident database, covering Experimental Amateur-Built aircraft from 1998 through 2020. It's based on downloaded NTSB data. This data involves aircraft that are built and (largely) maintained by amateurs, so it might not be completely attributable to the great masses of production-type aircraft that use these engines.
In the analysis, I note whether power failure was involved in each accident, and whether mechanical problems with the engine were present. These would include both cases where the engine spontaneously failed, and cases where the maintainer made a mistake. Note that it does NOT include issues with fuel flow, either mechanical or wetware.
I "normalize" the aircraft and engine types in my spreadsheet, since the NTSB designation for either is pretty random. So the data catches "Lycoming O-320" as well as "Lycoming O320" and "Textron O 320". Not perfect, but should get most.
For each type of engine, I'll give the total number installed in aircraft during the subject period, as well as the percentage of those where mechanical failure of the engine was involved. "Mechanical Issues" includes accessories such as magnetos, PSRUs, and radiators.
This data is for fixed-wing aircraft only.
All Homebuilts: 4133 cases, 10.3% due to mechanical issues.
All Continental Engines: 426 cases, 9.2% due to mechanical issues
Continental A65: 47 cases, 6.4% due to mechanical issues
Continental O-200: 120 cases, 5.0% due to mechanical issues
All Lycoming engines: 1642 cases, 6.1% due to mechanical issues
Lycoming O-235: 109 cases, 6.4% due to mechanical issues
Lycoming O-320: 502 cases, 5.6% due to mechanical issues
Lycoming O-360: 276 cases, 5.4% due to mechanical issues
Subaru: 120 cases, 25% due to mechanical issues
VW: 197 cases, 22.3% due to mechanical failure
Rotax 912: 371 cases, 5.1% due to mechanical failure
So, for the OP, the Lycoming 0-360 engine in your friend's airplane is probably one of the more reliable ones...given the comments others have made about different versions of this engine.
Ron Wanttaja