I have a similar problem. Merging two files other secured other not. Result PDF is only one file (=not secure file) plus Error message.
See attachment. Version 6.0 build 317.1 (With much earlier versions this worked fine)
Secured file is with password. PDF tools is not asking any password while merging process.