Please try to reboot(maybe a yum process hangs) and if this doesn’t work try rebuilding yum db:
Source:
https://www.cyberciti.biz/faq/rhel-centos-fedora-redhat-yum-running-transaction-test-error/
EDIT:
I got similar issue after playing with install/remove, some post install script seems to be the problem, the following worked for me:
yum-complete-transaction --cleanup-only
yum --setopt=tsflags=noscripts remove onlyoffice-documentserver