Cardiff striker Andreas Cornelius is set to return to FC Copenhagen after an unhappy seven-month spell with the Premier League club.