Convert database to mysql fails - 11 new install

HI there,

Thanks in advance for any assistance!
OC

sudo -u www php occ db:convert-type --password=“XXX” --all-apps mysql xxx localhost xxx

Returns
Creating schema in new database
oc_accounts
3/3 [============================] 100%oc_activity
chunked query, 4 chunks
3210/3210 [============================] 100%oc_activity_mq
0 [>---------------------------]oc_addressbookchanges
chunked query, 3 chunks
2310/2310 [============================] 100%oc_addressbooks
3/3 [============================] 100%oc_admin_sections
8/8 [============================] 100%oc_admin_settings
16/16 [============================] 100%oc_announcements
0 [>---------------------------]oc_announcements_groups
0 [>---------------------------]oc_appconfig
176/176 [============================] 100%oc_audioplayer_album_artists
0 [>---------------------------]oc_audioplayer_albums
0 [>---------------------------]oc_audioplayer_artists
0 [>---------------------------]oc_audioplayer_genre
0 [>---------------------------]oc_audioplayer_playlist_tracks
0 [>---------------------------]oc_audioplayer_playlists
0 [>---------------------------]oc_audioplayer_tracks
0 [>---------------------------]oc_authtoken
6/6 [============================] 100%oc_bookmarks
12/12 [============================] 100%oc_bookmarks_tags
38/38 [============================] 100%oc_bruteforce_attempts
0 [>---------------------------]oc_calendarchanges
chunked query, 3 chunks
2583/2583 [============================] 100%oc_calendarobjects
chunked query, 3 chunks
2568/2568 [============================] 100%oc_calendars
4/4 [============================] 100%oc_calendarsubscriptions
0 [>---------------------------]oc_cards
chunked query, 3 chunks
2269/2269 [============================] 100%oc_cards_properties
chunked query, 10 chunks
9670/9670 [============================] 100%oc_comments
0 [>---------------------------]oc_comments_read_markers
0 [>---------------------------]oc_credentials
2/2 [============================] 100%oc_dav_shares
0 [>---------------------------]oc_external_applicable
0 [>---------------------------]oc_external_config
0 [>---------------------------]oc_external_mounts
0 [>---------------------------]oc_external_options
0 [>---------------------------]oc_federated_reshares
0 [>---------------------------]oc_file_locks
556/556 [============================] 100%oc_filecache
663/663 [============================] 100%oc_files_trash
2/2 [============================] 100%oc_flow_checks
0 [>---------------------------]oc_flow_operations
0 [>---------------------------]oc_gpxedit_options_values
0 [>---------------------------]oc_gpxedit_tile_servers
0 [>---------------------------]oc_group_admin
2/2 [============================] 100%oc_group_user
3/3 [============================] 100%oc_groups
2/2 [============================] 100%oc_jobs
14/14 [============================] 100%oc_mail_accounts
3/3 [============================] 100%
PHP Fatal error: Allowed memory size of 2634022912 bytes exhausted (tried to allocate 72 bytes) in /usr/local/www/nextcloudav/3rdparty/symfony/console/Application.php on line 1073

The process really goes wild using memory
PID USER PRI NI VIRT RES S CPU% MEM% TIME+ Command
8172 www 30 0 4086M 611M S 9.8 15.0 0:59.91 php occ db:convert-type --password=xxx --all-apps mysql xxx localhost xxx

Server configuration

FreeBSD 11.0 -p6
Apache 2.4.25
mysql-server 5.6.34

PHP Version: 5.6.29
Memory Limit: 2512.0 MB (normally set to 512MB)
Max Execution Time: 3600
Upload max size: 511.0 MB

Nextcloud version: 11.0.0 (stable)
Fresh Install a week ago
Source from nextcloud.com

Github issue over here https://github.com/nextcloud/server/issues/2893