Module lacking capabilities

I made a game which uses a module to calculate should a player get a badge awarded and it worked all fine until today it randomly just stopped working, whenever i call the module i get the following error:
image
this issue just appeared without me changing the module at all and i can not seem to find the fix, if i check on the “sandboxed” it just gives a different error, the function i call is the following:
image
there is also a dictionary table with some values infront of it but that should not cause any issues
most of the badges are awarded once a part is rtouched and once a folder with some values are checked to be fullfilled (if the badge has requirements), however the issue isnt just for the part onces

i really need a solution as the whole game is badge focused and basicly the whole badge thing broke without any reason
ill just add this has happened after i came back to studio after working yesterday, did no updates, installed or used no plugins or modified any properties of any game service

i have created a new module under the same and and copied everything and now it just works, would be nice if someone knows why it had happened for the first time?

Make sure Capability Sandboxing is disabled for workspace & game

check the APIs capabilities you are using there in roblox documentation or set Sandboxed property to false or set SandboxedInstanceMode in workspace to Default