I mostly depends on the size of the shavings, that could be the engine is in bad shape. Firstly, an oil change and engine flush. Than replacing the valve cover gasket, by using a quality oil,not synthetic and install oil filter magnet to capture metal shavings.