I think you are using unstable branch with pacman 7.1 which provides libalpm 16.
So I am thinking because you are running pamac to do the upgrade then pamac will upgrade itself then, the in memory version of pamac will look for libalpm 15 which has been removed and thus shut down unexpectedly.