Shouldn't there be "dengan" instead of "yang"? This makes no sense to me.
Teriak keras is more correct. Both use of yang and dengan are also correct. They are just used as joining words to clarify.
I still don'understand it, the "yang keras" means that "teriak" is a noun or am I wrong? The adverb loudly should be "dengan keras"?