Online safety cannot be “pitted against economic investment”, the Science Secretary has said as he prepares to launch the UK’s AI action plan.