[ACE] Game Breaking Issues with Yanfly's Buff and States Manager

For a reason that I cannot comprehend, adjusting stuff(specifically the state reapply or buff stacking rules) in this script causes states to either never wear off or the player character to have infinite turns. I've never had this issue before with this script in my other projects, both of which used way more scripts than I'm currently using. I thought I found a work around by editing the script in another project, but that didn't work when I tried to adjust the buff settings.

Scripts in this project:
Ace Core Engine
Victor Engine
Adjust Limits
Critical Hit Effects
Equip Engine
Enemy EXP Formula

Ace Battle Engine
Visual Battlers
Elemental Popups
Victory Aftermath
Buff and States Manager
Skill Cost Manager
Enemy HP Bars
Element Absorb

Galv's Menu Themes Engine
Ace Status Menu
KMS Generic Gauge
EST Notebook System
Skill Equip
System Options
Wordwrapping

Map Name Load
Wordwrapping
KilloZapit Cache Back

Link to the script: https://raw.githubusercontent.com/Archeia/YEARepo/master/Gameplay/Buff_&_State_Manager.rb

Original thread: https://forums.rpgmakerweb.com/threads/ace-game-breaking-issues-with-yanflys-buff-and-states-manager.170570/