From what I can observe, this [khugepaged triggering occasionally and consuming 100% of cpu core] happens even without any mozilla software. And the khugepaged also exits after closing any application too not just mozilla.
Someone suggested it could be related to THP code change in Kernel 6.1
@anthony93 explained here already
If you still want to disable it try this answer on stackexchange