In ubuntu 22.04, this problem can be avoided by enabling NOCACHE in /etc/manpath.config.
# NOCACHE keeps man from creating cat pages. #NOCACHE