Was the installer running in its "iOS-style" mode (full screen, progress bar and Apple logo), then the more traditional macOS installer popped up, with the mouse pointer and menu bar, and the error message?
If so, seems like a failed installation of some kind. I'd try a reinstall, but first do a disk check using Disk Utility.