To help determine what may be causing the problem:
When did the issue start, and were any changes made to your computer before the issue started?
When you try to open Windows Security, does it remain stuck loading, or do you see any error message? If yes, please share the exact message here.
- Does Windows Security fail to open only from the icon, or does it also fail when you open it through Settings > Privacy & security > Windows Security?