This is also happening to me, it very frustrating and seems to only be happening with Microsoft products in the past few weeks. Not sure where to get the full log from
Oct 2, 2023, 4:38:40 PM
Application Microsoft Office 365 Enterprise (Current) (16.0.16827.20130) failed to install.
SMScriptException (3): Error in script.