I keep seeing people saying it's "traits" that are the cause, but it's actually the commodities that get stuck and those are added by buffs, not traits.
If you want a more surgical targeted workaround, there is a cheat that will remove them from affected sims. Always make sure to have backed up your save before using.
- stats.remove_stat commodity_civic_policy_effect_NPCAutonomy_OldDays
- stats.remove_stat commodity_civic_policy_effect_NPCAutonomy_FreeLove
- stats.remove_stat commodity_civic_policy_effect_NPCAutonomy_Aggression
- stats.remove_stat commodity_civic_policy_effect_NPCAutonomy_CommunalOwnership
- stats.remove_stat commodity_civic_policy_effect_NPCAutonomy_CreativeArts
- stats.remove_stat commodity_civic_policy_effect_NPCAutonomy_FunCommunity
- stats.remove_stat commodity_civic_policy_effect_NPCAutonomy_HomeCooking
- stats.remove_stat commodity_civic_policy_effect_NPCAutonomy_JuicedCommunity
- stats.remove_stat commodity_civic_policy_effect_NPCAutonomy_MusicArts
- stats.remove_stat commodity_civic_policy_effect_NPCAutonomy_SelfCare
- stats.remove_stat commodity_civic_policy_effect_NPCAutonomy_SelfSufficient
- stats.remove_stat commodity_civic_policy_effect_NPCAutonomy_TechnologicalProgress
There's versions for each NAP. Those cheats will remove the autonomous NAP triggers from sims, if they have somehow managed to become stuck on the sim. It's what I used to fix the first sim I found in my game which was displaying NAP behaviour while I was playing them and now he's fine. The cheats have to be entered manually on each sim though - it's not practical if you have large numbers of sims with the issues.
This method is only useful if your situation is something like: you have only one sim in your household affected by stuck NAP behvaviour, and it's more convenient to fix that single sim than using other more destructive methods (like saving the household to the library and replacing them with copies that lost all their relationships and skills/spells).
Unfortunately, you can't use this cheat without TwistedMexi's All Cheats restoration mod, because "stats.remove_stat" is one of the cheats removed from the game in 2018's Seasons update. So people who can't use mods, e.g. console players, will not be able to use this method either.