Treat mistakes as learning process
Treat errors as a tool
Treat difficult workmates and bosses as children
Treat scripts as writing stories for computers in different language.
If it affects you physically, it may be stress. Try to think that the whole process, whether it results in a good thing or a bad thing, is actually a progress.
There are indeed some frustrating part in scripting, unclear library docs, no static typings, slow feedback loops.
Keep in mind your end goal, being sysadmin right now is where you are and maybe a stepping stone. Do it one by one. Take a step back, calm yourself, see what's around you and take some steps to easen the pain and achieve your goal, whatever that is.