You probably read this article since that's where your image comes from, but it says this:
"Some mantis shrimp species mate for life -- they meet the shrimp of their dreams and they share the same burrow, protect their eggs and help each other with hunting for their entire lives -- up to 20 years."
mantis shrimp | Tetiaroa Society
@mtnbike101 saying 5 years is likely a good captivity outcome.