If this is a samsung side by side appliance and you hear the noise inside the fridge and it stops when the door is open then its going to be the fan inside the fridge at fault here.
As what will have happened is ice has built up around the fan which is causing the noise. So you will find the fridge will start to loose its cooling in there.
What you need to do is either empty the fridge section and then from there you need to remove the plastic housing unit inside the fridge in the bottom half.
Remove the water bottle (if fitted) and you will see 2 screws at the bottom of the panel.
Then remove the vent covers and theres a screw ther eon each side and then you can remove the panel. Just disconnect the wiring.#
Then you need to use a hairdryer and melt all the ice in there and clear the fan as well. Then refit the panel and retry it and that should sort it from there.
Or another way if you dont want to go removing panels you need to empty the appliance and turn it off for 24 hours and leave the fridge door open.
Then after 24 hours turn it back on and this will get the appliance working again from there. This is a very common fault on these samasung side by side appliances as we see this fault a lot.
So try the above and see how it goes from there.