I’m not sure I got that right. There are nodes from outside of your original bounding box? You could exclude these nodes from the file with Osmosis (–bb option). Or you could use osmconvert for this purpose. For example:

osmconvert europe.osm.pbf -b=10,50,11,51 --drop-brokenrefs --out-o5m >my_region.o5m