XP Remove Specific WindowSkins - Error

Hi,
I'm trying to remove specific window skins from the Graphics > Windowskins folder, but (understandably) when the player enters the the Options > Menu frame setting and selects the (removed) Windowskin, it crashes the game.


1749445566553.png



Error message:

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass

Backtrace:
AnimatedBitmap:14:in `initialize'
SpriteWindow:896:in `new'
SpriteWindow:896:in `update'
MessageConfig:497:in `block in pbUpdateSpriteHash'
MessageConfig:493:in `each'
MessageConfig:493:in `pbUpdateSpriteHash'
UI_Options:362:in `pbUpdate'
UI_Options:333:in `block (2 levels) in pbOptions'
UI_Options:330:in `loop'
UI_Options:330:in `block in pbOptions'

Let's say I only want the player to be able to choose from 4 different Windowskins,
How do I remove the unwanted Windowskins without breaking the game?

Thanks in advance
R

Original thread: https://forums.rpgmakerweb.com/threads/remove-specific-windowskins-error.178210/