[CONNECT U16 VBA] Method 'CreatePropertyHandler' of object '_application' failed

I have a VBA script designed under V8i and which worked very well on this version.
By wanting to reuse it under CONNECT I have an error that occurs at each execution on my DGN.

Rub-time error '-2147467259 (80004005)'
Method 'CreatePropertyHandler' of object '_application' failed

An example of code reproducing the error

Dim oPH As PropertyHandler
Dim sArray() As String

'Store all cells in array
Set oScanCriteriaCell = New ElementScanCriteria
oScanCriteriaCell.ExcludeAllTypes
oScanCriteriaCell.IncludeType msdElementTypeCellHeader
oScanCriteriaCell.IncludeType msdElementTypeSharedCell
oScanCriteriaCell.ExcludeNonGraphical
Set oCells = ActiveModelReference.Scan(oScanCriteriaCell)
elArrayCell = oCells.BuildArrayFromContents

'Loop in cells to extract sub shape
For i = LBound(elArrayCell) To UBound(elArrayCell)
    Set ee = elArrayCell(i).AsCellElement.GetSubElements
    elArraySubElement = ee.BuildArrayFromContents
    
    For j = LBound(elArraySubElement) To UBound(elArraySubElement)
        If elArraySubElement(j).IsShapeElement = True Then
            Set oPH = CreatePropertyHandler(elArraySubElement(j).AsShapeElement)
            oPH.SelectByAccessString "Count"
            nEles = oPH.GetValue
            ReDim sArray(0 To nEles - 1) As String
        End If
    Next
Next

An example of the type of object on which this occurs

There have been breaking changes between V8i and CONNECT which could explain this problem? Or is it an internal bug?